package ch6;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

public class PropTest {

	public static void main(String[] args) {
		Properties p = new Properties();
		// load 加载《配置》文件
		try {
			p.load(new FileInputStream("E:/WORKSPACES/MyEclipse_workspace/java61_oop/src/log4j.properties"));
			System.out.println(p);
			System.out.println(p.getProperty("log4j.appender.file"));
		} catch (IOException e) {
			// TODO 自动生成的 catch 块
			e.printStackTrace();
		}
	}

}
